home *** CD-ROM | disk | FTP | other *** search
- Path: news.NetVision.net.il!news
- From: iti@Jerusalem.netvision.net.il
- Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.lang.c++,comp.lang.basic.visual.database
- Subject: HELP!! VB - DLL
- Date: Tue, 19 Mar 96 12:24:35 PDT
- Organization: NetVision LTD.
- Message-ID: <NEWTNews.24485.827267151.Postmaster@Jerusalem.netvision.net.il>
- NNTP-Posting-Host: ts002p2.pop2a.netvision.net.il
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- X-Newsreader: NEWTNews & Chameleon -- TCP/IP for MS Windows from NetManage
-
-
-
- I am trying to link a Visual Basic Application with a DLL (written in
- C++). The definition of one of the functions in the DLL is ...
-
- extern "C"
- {
- int __export myFunc (HWND clientWnd);
- }
-
- I declare this function in the VB Application as ...
-
- "Declare Function myFunc Lib "myDll.dll" (ByVal hWnd%) As Integer"
-
- When I run the VB Application I get the Error...
- "Sub or Function not defined"
-
-
- How can I declare the function in VB so that it recognizes this function ???
-
- If you can help I would appreceate it if you can send an answer to my E-Mail
- address: iti@netvision.net.il
-
- Thanks
- Yaakov
-
-
-
-
-
-
-